package com.bw.service;

import com.bw.bean.User;
import com.bw.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author ${郭冬胜}
 * @date 2025/7/2 9:36
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public int add(User user) {
        return userDao.add(user);
    }

    @Override
    public int del(int id) {
        return userDao.del(id);
    }

    @Override
    public int xg(User user) {
        return userDao.xg(user);
    }

    @Override
    public List<Map> cz() {
        return userDao.cz();
    }

    @Override
    public int addBat(List<User> list) {
        return userDao.addBat(list);
    }

    @Override
    public int delBat(List<Integer> ids) {
        return userDao.delBat(ids);
    }
}
